<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Bootstrap 实例 - 按钮选项</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>

<!-- 标准的按钮 -->
<button type="button" class="btn btn-default">默认按钮</button>
<!-- 提供额外的视觉效果，标识一组按钮中的原始动作 -->
<button type="button" class="btn btn-primary">原始按钮</button>
<!-- 表示一个成功的或积极的动作 -->
<button type="button" class="btn btn-success">成功按钮</button>
<!-- 信息警告消息的上下文按钮 -->
<button type="button" class="btn btn-info">信息按钮</button>
<!-- 表示应谨慎采取的动作 -->
<button type="button" class="btn btn-warning">警告按钮</button>
<!-- 表示一个危险的或潜在的负面动作 -->
<button type="button" class="btn btn-danger">危险按钮</button>
<!-- 并不强调是一个按钮，看起来像一个链接，但同时保持按钮的行为 -->
<button type="button" class="btn btn-link">链接按钮</button>

<hr>
<p>
    <button type="button" class="btn btn-primary btn-lg">大的原始按钮</button>
    <button type="button" class="btn btn-default btn-lg">大的按钮</button>
</p>
<p>
    <button type="button" class="btn btn-primary">默认大小的原始按钮</button>
    <button type="button" class="btn btn-default">默认大小的按钮</button>
</p>
<p>
    <button type="button" class="btn btn-primary btn-sm">小的原始按钮</button>
    <button type="button" class="btn btn-default btn-sm">小的按钮</button>
</p>
<p>
    <button type="button" class="btn btn-primary btn-xs">特别小的原始按钮</button>
    <button type="button" class="btn btn-default btn-xs">特别小的按钮</button>
</p>
<p>
    <button type="button" class="btn btn-primary btn-lg btn-block">块级的原始按钮</button>
    <button type="button" class="btn btn-default btn-lg btn-block">块级的按钮</button>
</p>

<hr>
<p>
    <button type="button" class="btn btn-default btn-lg ">默认按钮</button>
    <button type="button" class="btn btn-default btn-lg active">激活按钮</button>
</p>
<p>
    <button type="button" class="btn btn-primary btn-lg ">原始按钮</button>
    <button type="button" class="btn btn-primary btn-lg active">激活的原始按钮</button>
</p>

<hr>
<p>
    <button type="button" class="btn btn-default btn-lg">默认按钮</button>
    <button type="button" class="btn btn-default btn-lg" disabled="disabled">禁用按钮</button>
</p>
<p>
    <button type="button" class="btn btn-primary btn-lg ">原始按钮</button>
    <button type="button" class="btn btn-primary btn-lg" disabled="disabled">禁用的原始按钮</button>
</p>
<p>
    <a href="#" class="btn btn-default btn-lg" role="button">链接</a>
    <a href="#" class="btn btn-default btn-lg disabled" role="button">禁用链接</a>
</p>
<p>
    <a href="#" class="btn btn-primary btn-lg" role="button">原始链接</a>
    <a href="#" class="btn btn-primary btn-lg disabled" role="button">禁用的原始链接</a>
</p>

<hr>
<a class="btn btn-default" href="#" role="button">链接</a>
<button class="btn btn-default" type="submit">按钮</button>
<input class="btn btn-default" type="button" value="输入">
<input class="btn btn-default" type="submit" value="提交">

<hr>
<div class="btn-group btn-group-justified">
    <a href="#" class="btn btn-primary">Apple</a>
    <a href="#" class="btn btn-primary">Samsung</a>
    <a href="#" class="btn btn-primary">Sony</a>
</div>

<hr>
<div class="btn-group">
    <button type="button" class="btn btn-primary">Apple</button>
    <button type="button" class="btn btn-primary">Samsung</button>
    <div class="btn-group">
        <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
            Sony <span class="caret"></span></button>
        <ul class="dropdown-menu" role="menu">
            <li><a href="#">Tablet</a></li>
            <li><a href="#">Smartphone</a></li>
        </ul>
    </div>
</div>

<hr>
<div class="btn-group">
    <button type="button" class="btn btn-primary">Sony</button>
    <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
        <span class="caret"></span>
    </button>
    <ul class="dropdown-menu" role="menu">
        <li><a href="#">Tablet</a></li>
        <li><a href="#">Smartphone</a></li>
    </ul>
</div>
</body>
</html>